﻿@if (string.IsNullOrEmpty(Roles))
{
    <a href="@Url">
        <span class="oi oi-cog me-2"></span>
    </a>
}
else
{
    <AuthorizeView Roles="@Roles">
        <Authorized>
            <a href="@Url">
                <span class="oi oi-cog me-2"></span>
            </a>
        </Authorized>
    </AuthorizeView>
}
@code {
    [Parameter]
    public string Roles { get; set; }
    [Parameter]
    public string Url { get; set; }
}
